#!/bin/bash
sudo mknod -m 0666 /dev/chardev0 c 256 0
cat /dev/chardev0
make
sudo insmod char_dev_driver.ko
cat /dev/chardev0
sudo rmmod char_dev_driver.ko
sudo rm /dev/chardev0
modinfo char_dev_driver.ko
make clean